-- init.lua

ws2812.init()
--让第一个灯显示红色
ws2812.write(string.char(0,255,0))
--让第一个灯显示红色，第二个灯显示绿色
ws2812.write(string.char(0,255,0, 255,0,0))
--让第一个灯显示红色，第二个灯显示绿色，第三个灯显示蓝色
ws2812.write(string.char(0,255,0, 255,0,0, 0,0,255))
--依次类推
ws2812.write(string.char(0,255,0, 255,0,0, 0,0,255,0,255,0))

ws2812.write(string.char(0,255,0, 255,0,0, 0,0,255,0,255,0, 255,0,0))

ws2812.write(string.char(0,255,0, 255,0,0, 0,0,255,0,255,0, 255,0,0, 0,0,255))

ws2812.write(string.char(0,255,0, 255,0,0, 0,0,255,0,255,0, 255,0,0, 0,0,255, 0,255,0))

ws2812.write(string.char(0,255,0, 255,0,0, 0,0,255,0,255,0, 255,0,0, 0,0,255, 0,255,0, 255,0,0))
